﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SaaSKit.Taskr.Service;
using System.ServiceModel;

namespace root.Proxies
{
    public class CoreServiceProxy : ClientBase<ICoreService>, ICoreService
    {
        public Guid CreateTask(TaskDTO task)
        {
            return base.Channel.CreateTask(task);
        }

        public void UpdateTask(TaskDTO task)
        {
            base.Channel.UpdateTask(task);
        }

        public void DeleteTask(Guid taskId)
        {
            base.Channel.DeleteTask(taskId);
        }

        public TaskDTO GetTask(Guid taskId)
        {
            return base.Channel.GetTask(taskId);
        }

        public void PostActivity(ActivityDTO activity)
        {
            base.Channel.PostActivity(activity);
        }

        public IList<TaskDTO> ListAllTasks()
        {
            return base.Channel.ListAllTasks();
        }

        public IList<TaskDTO> ListAllActiveTasks()
        {
            return base.Channel.ListAllActiveTasks();
        }

        public IList<TaskDTO> ListAllCompletedTasks()
        {
            return base.Channel.ListAllCompletedTasks();
        }

        public IList<TaskDTO> ListUnassignedTasks()
        {
            return base.Channel.ListUnassignedTasks();
        }

        public IList<TaskDTO> ListTasks(Guid assigneeId)
        {
            return base.Channel.ListTasks(assigneeId);
        }

        public IList<TaskDTO> ListActiveTasks(Guid assigneeId)
        {
            return base.Channel.ListActiveTasks(assigneeId);
        }

        public IList<TaskDTO> ListCompletedTasks(Guid assigneeId)
        {
            return base.Channel.ListCompletedTasks(assigneeId);
        }
    }
}